#ifndef DOWNLOADHELPER_H
#define DOWNLOADHELPER_H
#include <QtNetwork/QtNetwork>
#include <QFile>
#include <QObject>

class downloadHelper:public QObject
{
    Q_OBJECT
public:
    //开始下载
    QFile *file = nullptr;
    bool CheckedFile(QString fileName);
    void downloadFile(QUrl fileUrl);

    QNetworkAccessManager Manager;
    QNetworkReply *Reply = nullptr;

signals:
    void SendMessageFileDownEnd();

public slots:
    void WriteFile();
    void WriteFileEnd();
};

#endif // DOWNLOADHELPER_H
